function y = sincos(x)
% SINCOS function
% x0=[3,1,3,1,...,3,1]
n=length(x); y=0; 
m=n/2;
for i=1:m
    y=y+((x(2*i-1))^2+(x(2*i))^2+x(2*i-1)*x(2*i))^2+(sin(x(2*i-1)))^2+(cos(x(2*i)))^2;
end


